# @Version : 1.0
# @Author  : 刘宇
# @File    : 10_assign_class_exercise.py
# @Time    : 2025/9/30 15:35

# a = 10
# b = 20
#
# print(f"交换前的值a={a},b={b}")
#
# temp = a
# a = b
# b = temp
# print(f"交换后的值a={a},b={b}")

a = 1
b = 2
a = a + b
b = a - b
a = a - b
print(f"交换后的值a={a},b={b}")